home *** CD-ROM | disk | FTP | other *** search
/ Scene Storm / Scene Storm - Volume 1.iso / coding / c / amiexpress / source / doors / offline / offline.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-26  |  636 b   |  37 lines

  1. #include <exec/exec.h>
  2. #include <stdlib.h>
  3. #include <stdio.h>
  4. #define pu putuserstring
  5. extern struct Library *AEBase;
  6. #include "dh0:code/aelib/ae_pragmas.h"
  7.  
  8. void LastCommand(void);
  9. void end(void);
  10.  
  11. main(int argc,char *argv[])
  12. {
  13.    char File[200];
  14.    if(argc!=2)
  15.    {
  16.      printf("\n");
  17.      printf("OFFLINE version 1.0, written by Joseph Hodge\n");
  18.      printf("This is a (XIM) for AmiExpress 2.1+\n");
  19.      printf("\n");
  20.      exit(0);
  21.    }
  22.    Register(argv[1][0]-'0');
  23.    strcpy(File,argv[0]);
  24.    StripReturn(File);
  25.    showgfile(File);
  26.    ShutDown();
  27.    end();
  28. }
  29.  
  30. void LastCommand(void)
  31. {
  32.   pu("",511);
  33. }
  34. void end(void)
  35. {
  36.   exit(0);
  37. }